home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Visual C++ Utilities / Set Version Utility / SetVersion.txt < prev    next >
Encoding:
Text File  |  2002-08-15  |  1.1 KB  |  36 lines

  1. In a recent project I worked with, we daily stampled all files in the morning.
  2. That way when we did incremental builds of components we could track on testing
  3. machines which version was used.
  4.  
  5. To complete this, we used the Windows NT AT-command on one of the development
  6. machines to run a BAT-file.
  7.  
  8. The BAT-file runs SetVersion.EXE twice, once for *.RC files and once for *.VBP files, 
  9. since the project was a mixed VC6 VB6 environment.
  10.  
  11. Hope you get some ideas of your own out of this!
  12.  
  13.  
  14.  
  15. C:\>at
  16. Status ID   Day                     Time          Command Line
  17. -------------------------------------------------------------------------------
  18.         1   Each M T W Th F         09:00 AM      "c:\src\prjroot\setver.bat"
  19.  
  20.  
  21.  
  22. C:\>type "c:\src\project root\setver.bat"
  23.  
  24. @echo off
  25. set PRJ_ROOT=c:\src\project root
  26. rem
  27. "%PRJ_ROOT%\setversion" -h "%PRJ_ROOT%\inc\ver.h" "%PRJ_ROOT%\version.ini
  28. rem
  29. " "%PRJ_ROOT%\*.rc" > "%PRJ_ROOT%\version.log"
  30. rem
  31. "%PRJ_ROOT%\setversion" -h "%PRJ_ROOT%\inc\ver.h" "%PRJ_ROOT%\version.ini
  32. rem
  33. " "%PRJ_ROOT%\*.vbp" >> "%PRJ_ROOT%\version.log"
  34. rem
  35. set PRJ_ROOT=      
  36.